<div id="icon-edit" class="icon32 icon32-posts-post"><br></div>
<h2>新增案例分类</h2>
<?php if (isset($validationErrors)): ?>
<div class="error">
<?php
    foreach($validationErrors as $field => $messages) {
        echo $field, " : ", $messages[0], "<br/>";
    }
?>
</div>
<?php endif; ?>
<hr/>
<?php
echo $this->Form->create('Service', array('type' => 'file'));
echo $this->Form->input('Service.name', array('label'=>'服务标题'));
echo $this->Form->input('Service.priority', array('label'=>'服务排序优先级'));
echo $this->Form->input('Service.in_home',
    array(
        'options' => array('No'=>'不显示', 'Yes'=>'显示'),
        'label' => '显示在首页'
    )
);
echo $this->Form->input('Service.icon', array(
    'type' => 'file',
    'label' => '服务图标',
    'after' => '230x120'
));
echo $this->Form->input('Service.desc', array('label'=>'服务说明'));
?>
    <div class="clear"></div>
    <div class="submit">
        <input  type="submit" value="submit"/>
    </div>
</form>
